package com.kucun.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kucun.Dao.GuigeMapper;
import com.kucun.bean.Guige;
import com.kucun.bean.Page;
import com.kucun.service.GuigeService;
import com.kucun.service.UnitsService;

@Service
@Transactional 
public class GuigeServiceImp implements GuigeService {
	@Resource
	private GuigeMapper guigeMapper;
	public Integer save(Guige units) {
		return guigeMapper.insert(units);
	}

	public Integer update(Guige units) {
		return guigeMapper.updateByPrimaryKey(units);
	}

	public Integer updateGoodsForDel(String ids) {
		return guigeMapper.updateGoodsForDel(ids);
	}

	public Integer delete(int id) {
		return guigeMapper.deleteByPrimaryKey(id);
	}

	public Guige findById(int id) {
		
		return guigeMapper.selectByPrimaryKey(id);
	}

	public List<Guige> findAll(Page page) {
		return guigeMapper.findAll(page);
	}

	public Page getCount() {
		
		return guigeMapper.getCount();
	}

	public Integer updateByPrimaryKeySelective(Guige units) {
		
		return guigeMapper.updateByPrimaryKeySelective(units);
	}

	public List<Guige> findAllDateNoPaging() {
		return guigeMapper.findAllDateNoPaging();
	}


	


}
